$OpenBSD: patch-src_endianness_h,v 1.1.1.1 2014/04/18 15:14:09 pascal Exp $
--- src/endianness.h.orig.port	Tue Sep 21 17:24:32 2010
+++ src/endianness.h	Sat May 26 16:32:35 2012
@@ -7,6 +7,7 @@ double DONTUSE__NXSwapBigDoubleToLittleEndian( double 
 #if defined (__HAIKU__) //For unknow reasons, Haiku don't fit into any case below
     #include <endian.h>
 #elif defined (__APPLE__) || defined (MACOSX) || defined (BSD) || defined (__FreeBSD__)
+    #include <sys/types.h>
     #include <machine/endian.h>
 #else
 
